﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VOL.Entity.SystemModels;

namespace VOL.Entity.DomainModels.PatientManage
{
    [Entity(TableCnName = "缴费明细", TableName = "PayItem")]
    public partial class PayItem : BaseEntity
    {
        /// <summary>
        ///主键Id
        /// </summary>
        [Key]
        [Display(Name = "主键Id")]
        [Column(TypeName = "int")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public int Id { get; set; }

        /// <summary>
        ///待缴费Id
        /// </summary>
        [Display(Name = "待缴费Id")]
        [MaxLength(30)]
        [Column(TypeName = "int")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public int PayInfoId { get; set; }

        /// <summary>
        ///花费项目
        /// </summary>
        [Display(Name = "花费项目")]
        [MaxLength(50)]
        [Column(TypeName = "varchar(50)")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public string ItemName { get; set; }

        /// <summary>
        ///花费类型
        /// </summary>
        [Display(Name = "病人编号")]
        [MaxLength(50)]
        [Column(TypeName = "varchar(50)")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public string ItemType { get; set; }

        /// <summary>
        ///费用明细项
        /// </summary>
        [Display(Name = "费用明细项")]
        [MaxLength(20)]
        [Column(TypeName = "varchar(50)")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public string Items { get; set; }

        /// <summary>
        ///价格
        /// </summary>
        [Display(Name = "价格")]
        [Column(TypeName = "decimal")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public decimal Price { get; set; }

        /// <summary>
        /// 是否报销
        /// </summary>
        [Display(Name = "是否报销")]
        [Column(TypeName = "int")]
        [Editable(true)]
        public int IsReimbursement { get; set; }


    }
}
